#include "bga/graphics/Texture2DLoader.h"

namespace bga
{

Texture2DLoader::Texture2DLoader() : Loader<Texture2D>()
{

}

Texture2DLoader::~Texture2DLoader()
{

}

Texture2D* Texture2DLoader::load(File& file)
{
    Texture2D* texture = new Texture2D();
    texture->setWrapS(GL_REPEAT);
    texture->setWrapT(GL_REPEAT);
    texture->setMinFilter(GL_LINEAR);
    texture->setMagFilter(GL_LINEAR);
    texture->setImage(file.getFullName());
    return texture;
}

}
